﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DQYT.HTDZ.BLL;
using System.Data;
using DQYT.HTDZ.BusinessService;

namespace DQYT.HTDZ.Web.Views.Analysis
{
	public partial class Dbpj : System.Web.UI.Page
	{
        private DrawFunc drawFunc = new DrawFunc();//描图类
        protected void Page_Load(object sender, EventArgs e)
        {
                     
                if (!IsPostBack)
                {
                    initData();
                    list_all.Items.Add("5T19-41");
                    list_all.Items.Add("5T19-43");
                    list_all.Items.Add("5T19-42");
                    list_all.Items.Add("5T19-45");
                }
           
        }
        private void initData()
        {
            DataTable dt = new DataTable();
            dt = drawFunc.getWellList_Date("2013/4/25 12:14:00", "2013/4/25 12:14:59");
            if (dt == null || dt.Rows.Count < 1)
            {
                dt.Rows.Add(dt.NewRow());
            }

            gvData.DataSource = dt;
            gvData.DataKeyNames = new string[] { "WELLID" };
          
            gvData.DataBind();
        }

        protected void gvData_PageIndexChanging(object sender, GridViewPageEventArgs e)
        {
            gvData.PageIndex = e.NewPageIndex;
            initData();
            
        }

        protected void btn_djdb_Click(object sender, EventArgs e)
        {

        }

       

       
	}
}